﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.DrivenPropertyManager
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System.Diagnostics;
using System.Runtime.CompilerServices;
using UnityEngine.Bindings;

#nullable disable
namespace UnityEngine
{
  [NativeHeader("Editor/Src/Properties/DrivenPropertyManager.h")]
  internal class DrivenPropertyManager
  {
    [Conditional("UNITY_EDITOR")]
    public static void RegisterProperty(Object driver, Object target, string propertyPath)
    {
      DrivenPropertyManager.RegisterPropertyPartial(driver, target, propertyPath);
    }

    [Conditional("UNITY_EDITOR")]
    public static void TryRegisterProperty(Object driver, Object target, string propertyPath)
    {
      DrivenPropertyManager.TryRegisterPropertyPartial(driver, target, propertyPath);
    }

    [Conditional("UNITY_EDITOR")]
    public static void UnregisterProperty(Object driver, Object target, string propertyPath)
    {
      DrivenPropertyManager.UnregisterPropertyPartial(driver, target, propertyPath);
    }

    [StaticAccessor("GetDrivenPropertyManager()", StaticAccessorType.Dot)]
    [NativeConditional("UNITY_EDITOR")]
    [Conditional("UNITY_EDITOR")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern void UnregisterProperties([NotNull("ArgumentNullException")] Object driver);

    [NativeConditional("UNITY_EDITOR")]
    [StaticAccessor("GetDrivenPropertyManager()", StaticAccessorType.Dot)]
    [MethodImpl(MethodImplOptions.InternalCall)]
    private static extern void RegisterPropertyPartial(
      [NotNull("ArgumentNullException")] Object driver,
      [NotNull("ArgumentNullException")] Object target,
      [NotNull("ArgumentNullException")] string propertyPath);

    [NativeConditional("UNITY_EDITOR")]
    [StaticAccessor("GetDrivenPropertyManager()", StaticAccessorType.Dot)]
    [MethodImpl(MethodImplOptions.InternalCall)]
    private static extern void TryRegisterPropertyPartial(
      [NotNull("ArgumentNullException")] Object driver,
      [NotNull("ArgumentNullException")] Object target,
      [NotNull("ArgumentNullException")] string propertyPath);

    [NativeConditional("UNITY_EDITOR")]
    [StaticAccessor("GetDrivenPropertyManager()", StaticAccessorType.Dot)]
    [MethodImpl(MethodImplOptions.InternalCall)]
    private static extern void UnregisterPropertyPartial(
      [NotNull("ArgumentNullException")] Object driver,
      [NotNull("ArgumentNullException")] Object target,
      [NotNull("ArgumentNullException")] string propertyPath);
  }
}
